#ifndef SOCKET_H
#define SOCKET_H

#include "QHttp"
#include "QLabel"
#include <qregexp.h>
#include "httpclient.h"
#include "QtCore/QTime"

enum LoginResult {
    LoginOK,
    LoginIncorrectInfo,
    LoginConnectionFailed,
    LoginUnknownError
};


class VKChecker
{
private:
    QString qHost;
    QString qEmail;
    QString qPass;
    QString qLocation;
    HttpClient *chttp;
    bool logged;
public:
    VKChecker(QString email, QString pass);
    ~VKChecker();
    LoginResult login();
    QString getHomePage();
    void setProxyInfo(bool useProxy, QString proxyHost, int proxyPort, bool useAuthorization, QString proxyUserName, QString proxyPassword);
    QString getNewMessages(QLabel *lab);
};

#endif // SOCKET_H
